package com.islewars.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.islewars.client.dto.ChatLineDto;
import com.islewars.client.dto.GameDto;
import com.islewars.client.dto.MountainDto;
import com.islewars.client.dto.PlayerDto;

@RemoteServiceRelativePath("gameService")
public interface GameService extends RemoteService {
	boolean login(String username);
	
	List<String> getPlayers();
	
	void say(String player, String text);
	
	List<ChatLineDto> getChat();
	
	List<GameDto> getGames();
	
	boolean createGame(PlayerDto creator, String gameName, List<MountainDto> mountainDtos);
	
	boolean deleteGame(PlayerDto player, String gameName);
	
	GameDto joinGame(PlayerDto joinPlayer, String gameName);
}
